package com.suxin.websocket.model;

import com.suxin.core.domain.BaseEnum;

/**
 * @author Tang
 * @classname ModelEnum
 * @description [  ]
 * @date 2022/3/24 15:08
 */
public enum ModelEnum implements BaseEnum {

    /**
     * 心跳
     */
    HEARTBEAT(0,"Heartbeat"),

    /**
     * 好友邀请成功推送
     */
    FRIENDNOTIFY(1,"FriendNotify"),

    /**
     * 奖励发放完
     */
    REWARDCLEARNOTIFY(2, "RewardClearNotify")
    ;

    private Integer code;

    private String msg;

    ModelEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return msg;
    }

}
